﻿<%@ Page Language="C#" Theme="Default" AutoEventWireup="true" MasterPageFile="~/GeneralAlumno.master" CodeFile="inscripcion_cursado.aspx.cs" Inherits="inscripcion_cursado" %>

<asp:content id="Content1" contentplaceholderid="contenido" runat="server">
    <br />
    <div style="text-align:center;margin-top:10px;">
    <asp:Label SkinID="Titulo" ID="Label7" runat="server">Inscripción a Cursado</asp:Label>
    </div>
    
    <div style="width:580px; overflow:auto; margin-top:30px;">
    <asp:Label SkinId="MensajeExito" ID="lblMensaje" runat="server" Text=""></asp:Label><br />  
    <form id="form1" runat="server">
    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
        DataSourceID="ObjectDataSource2" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="4" ForeColor="Black" GridLines="Horizontal" HorizontalAlign="Center">
        <Columns>
            <asp:TemplateField HeaderText="Nivel" SortExpression="NivelMateria">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("NivelMateria") %>'></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label1" runat="server" Text='<%# Bind("NivelMateria") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Materia" SortExpression="NomMateria">
                <EditItemTemplate>
                    <asp:Label ID="Label1" runat="server" Text='<%# Eval("NomMateria") %>'></asp:Label>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label2" runat="server" Text='<%# Bind("NomMateria") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Comision" SortExpression="NroComision">
                <EditItemTemplate>
                    <asp:Label ID="Label2" runat="server" Text='<%# Eval("NroComision") %>'></asp:Label>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label3" runat="server" Text='<%# Bind("NroComision") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Aula" SortExpression="Aula">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("Aula") %>'></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label4" runat="server" Text='<%# Bind("Aula") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="A&#241;o" SortExpression="Anio">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("Anio") %>'></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label5" runat="server" Text='<%# Bind("Anio") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:HyperLinkField DataNavigateUrlFields="IdCurso" DataNavigateUrlFormatString="inscripcion_cursado.aspx?idCurso={0}"
                HeaderText="Inscribir" Text="Inscribir" />
        </Columns>
        <FooterStyle BackColor="#9CBED5" ForeColor="White" Font-Bold="True" />
        <PagerStyle BackColor="#9CBED5" ForeColor="White" HorizontalAlign="Center" Font-Names="Verdana" Font-Size="Small" Wrap="False" />
        <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
        <HeaderStyle BackColor="#9CBED5" Font-Bold="True" ForeColor="White" />
        <RowStyle BackColor="#E3EAEF" />
        <EditRowStyle BackColor="#7C6F57" />
        <AlternatingRowStyle BackColor="White" />
    </asp:GridView>
        <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" SelectMethod="RecuperarDisponibles"
            TypeName="Academia.Negocio.Cursos">
            <SelectParameters>
                <asp:SessionParameter Name="legajo" SessionField="legajo" Type="Int32" />
            </SelectParameters>
        </asp:ObjectDataSource>
        &nbsp; &nbsp; &nbsp;
        &nbsp; &nbsp;
        &nbsp; &nbsp;&nbsp;
    </form>
    </div>
</asp:content>
